upgrade doorkeeper gem
include missing controller modules 

since https://github.com/doorkeeper-gem/doorkeeper/commit/36c110748d22a0a9e65da3ea190d2118aee11fed doorkeeper tokens_controller is bare metal.
Merge pull request #152 from astopy/master

Add DB migration script for production deployment.
Merge pull request #149 from camallen/gem_upgrades

upgrade doorkeeper
Convert Classification visible query into a union all
Fix BindParam substitution on MRI
Merge pull request #153 from edpaget/union-all

Convert Classification visible query into a union all
gracefully fail with missing oauth application client id
remove Api Json parse error middleware

Custom middleware is masking appliaction execptions similar to this, http://stackoverflow.com/questions/23150061/custom-middleware-block-raised-exceptionss-backtrace Seems to be linked to ActionDispatch::DebugExceptions in dev mode but I can't figure out how to get the middleware to invisibly pass the errors back up the rack stack
use normal json instead of json_api as sessions controller is not an api contoller
restrict access to the oauth applications list
oauth applications list, use redirect and error page instead of head response
handle blank token create applicaiton client ids
add index to classificaitons user_groups fk
revert incorrect schema additions
extract hack to test config ony
use try instead of explicit error raise / rescue
Merge pull request #155 from camallen/fix_api

API tweaks
Add SMTP production config