Extract API response behavior to a controller mixin
Separate API behavior into its own model
Make the base url mechanism relative to the Rails root
Remove global references to $requested_api_version
Do not use a global variable to initialize a RestReply - use a controller helper method.
Move the API document handler to its own controller
Ensure lib directory is in the autoload path, do not require rubygems when developing from source
Move authentication logic to a new controller mixin
All controllers should inherit the standard filters, except where they are bypassed