Committing tested local changes from live server (fixes for ensuring that an user is always processed by the correct site, fixes debug(message) when message is not a string), plus general exception handling, and admin improvements.