Added support for localhost
Disabling the chat for edit mode and for admin area
Using native logging system
Code cleanup