Added tests for rights in database.
Resharping.
Merge branch 'ServiceStack' of https://github.com/WinShooter/WinShooter-Web into ServiceStack