Added environment declaration.
Updated gem dependencies
Added API application
Fixes to app configuration and availability logic. First stab at
availability listing for later rendering purposes.