Fix bugs. Refactoring.

Bugs:
- possible citizens ban using arbitrary reasonId (thx dimistor for report);
- mistake in counting citizens bans when decide can user be a citizen.