rails 4 compat
Rails.env instead of RAILS_ENV
Fix error: incompatible character encodings: ASCII-8BIT and UTF-8; thanks to fcrisafulli
Merge remote-tracking branch 'ceberhardt/master'

Conflicts:
	lib/apn_on_rails/app/models/apn/app.rb