Use rails-assets instead of manual vendor.
Convert type using jquery-cookie functionality.
No more parseJSON.
Fix indentation.

Done with rubocop --auto-correct.
Remove `then` keyword for multiline `if`/`unless`.

Autocorrected with rubocop.
Remove all tabs.

Autocorrected with rubocop. With manual fix on:

- `db/migrate/20100101225942_constrain_user_logs.rb`
Don't use unless...else.
Add basic rubocop configs.
Use self-assignment shorthand.
Wow Concern.
Use rails-ish syntax instead of raw sql.
Fix indentation.