refactor Category

* move callback bodies to separate methods (easier to test)
Merge branch 'refactor-category' of git://github.com/goshakkk/discourse

Conflicts:
	app/models/category.rb