Adding CanCan authorization to the application.
Migrated to JRuby 1.7.18.