Added API Controller tests

Tests have not been tested.
Added API Controller tests

Tests have not been tested.
Merge branch 'testing' of github.com:dawn/dawn into testing
Rearranged ApiController includes to fix render json issues
Killing head only responses 1 by 1
Added AppsController#releases
App#proctypes should return an empty Hash if their are no releases
Added releases index rabl template
Fixed App#domains not existing
Fixed Domain not inheriting from ActiveRecord::Base
Domains allow using the url/name as well as id
Merge branch 'dockerify' of github.com:dawn/dawn into testing

Conflicts:
	app/models/app.rb
KeysController#create action now validates keys
Added StrongParameters to ApiController
Simplified the KeysController by moving validation to the Key model
Patched up missing env_changed? method

env has been moved to releases, and so App no longer has a direct env
attribute.
Removed support for GET /apps?name

Use GET /apps/:name instead
gears_restart render a json message
Enforce app request parameters
Destroy domains along with app