added translations to spanish
Extract queries to keep logic in the Categories Model

This creates two methods in the Category model. This moves the model
logic to the model and just calls the Category class methods in
ListController.

This also adds tests for the two methods created in the Category
model. The motivation for this refactor is the code climate score of the
this class and readability of the code.

 Please enter the commit message for your changes. Lines starting
Update client.es.yml
Use GlobalSetting to enable CORS at application level
now that wbr tags are inputted, breaking usernames a bit more natually
FIX: Show the renamed uncategorized name instead of "(no category)"
Add groups list to the poster expansion when you click an avatar while
in a topic.
FIX: Chrome has a bug where if you request the same URL with a different
MIME type, then leave and hit the back button, you'll get the last MIME
type requested instead of HTML. This fixes it.
When creating/editing a category the parent shoudl be none.
Refactors PostCreator.
FIX: restore category when opening draft
Merge pull request #1928 from velesin/post_creator_refactoring

Refactors PostCreator.
FEATURE: Admin selector to choose a primary group for a user, display it
and apply a CSS class to their posts.
FIX: Back button in chrome on static pages
FIX: Wrong text. Thanks @riking
BUGFIX: phantom new and unread for category definition topics
rails master upgrade
BUGFIX: ensure topic_view exists before attempting to access it
correct spec to account for category definition topics
BUGFIX: improve quality of unread / new counters