refactor Category

* move callback bodies to separate methods (easier to test)
Prevent quote content collisions with multiples in one post
[Fixes #142]
highlight the first of the newly loaded topics when scrolling
added the min-search-term-length site setting
updating cs translation
remove N+1 queries
add fast xor, we need really fast xor to keep our password function honest.
Merge pull request #394 from kubabrecka/cs_update8

updating cs translation
Merge pull request #390 from ZogStriP/min-search-term-length-site-setting

added the min-search-term-length site setting
apply locale in sidekiq jobs
messagebus diagnostics process path on Mac OS
Merge branch 'refactor-category' of git://github.com/goshakkk/discourse

Conflicts:
	app/models/category.rb
Merge pull request #397 from kubabrecka/fix_ps_warning

messagebus diagnostics process path on Mac OS
Merge pull request #380 from alxndr/master

Keep track of state/content between multiple quotes in a single post
update cs localization + pseudolocalization
Merge pull request #385 from ZogStriP/highlight-first-of-loaded-topics

highlight the first of the newly loaded topics when scrolling
Support for Simplified Chinese thanks to tangramor
Merge pull request #399 from kubabrecka/update_cs9

update cs localization + pseudolocalization
User Profile enhancements:

- Added PreloadStore support to avoid duplicate requests
- preliminary SEO
- Support for opengraph/twitter cards
Fixes broken jasmine test - PreloadStore now returns null