[i/178] Optimise SN load, load only needed modules

Old commit messages:

[i/178] loading only needed modules, reducing count of SQL queries

[i/178] adding manual edits

[i/178] removing harmy call of $db->sql_escape()

[i/178] adding removing of cached file for smilies

[i/178] adding method to refresh emotes cache

[i/178] moving _emote_refresh_cache() calls to proper locations

[i/178] using the same whitespace cleaning than acm