Rails 4 updates

Remove assets gem group when using rails 4.
Don't add attr_accessible for Devise in rails 4.
Refactored rails 4 check into helper method.