Fix authorization for categories read actions.
use File.extname to determine extension.
Merge branch '520-file_extension_determination' into develop

Conflicts:
	app/controllers/categories_controller.rb