Fixed permission loading.
Fixed emulator crashed caused by broken MySQL query.
Mini general clean up.
Aded room event placeholders
Fixed emulator crashed caused by broken MySQL query - for real this time(?)
Added missing packet handler registration.