fixed #426
fixed #427 (replaced thin with unicorn) and more

added  rails_12factor gem to prevent the deprecation error on heroku