Improved init.sql: added definitions of engine and character set.
Improved users and apps models.
Fixed layouts.
+ Other small changes.