allow layer replace to respect the current permissions
include legend in map print
put layer, map and document count into topic category
connect the signals for categories count
update all tests to use real data instead of fixtures where needed
add migrations for the topic categories count
Merge pull request #881 from simod/categories_count

Categories counts in models
Merge pull request #873 from simod/replace-permissions

allow layer replace to respect the current permissions
Merge pull request #874 from simod/include-legend

include legend in map print
For some reason I cannot figure out (maybe some sort of dependency) the avatar application it is not being synced when running syncd. I am adding back its initial migration, as it was some weeks ago, as in this way it is synced when running migrations.
remove SRID which is not needed in CSW context
update travis-ci link [ci skip]
Added a migration to remove SRID from default value in the ResourceBase csw_wkt_geometry field.
Removed the thumbnail field from the LayerForm.