Nikon has released development kits for many of their newest cameras, including the D90, as well as a NEF (RAW) file decoding library. The SDK lets you write applications that control the camera directly via USB (like Aperture’s tethered mode).
To get any of their SDKs, fill out this form at Nikon’s site.