Fix some random closure issues on the database.  Add filename call in Hosts and Users.  Add a new line in the email stuff to make formatting neater.

git-svn-id: https://svn.code.sf.net/p/freeghost/code/trunk@2546 71f96598-fa45-0410-b640-bcd6f8691b32
Add a wakeup function to keep the database connected as needed.

git-svn-id: https://svn.code.sf.net/p/freeghost/code/trunk@2547 71f96598-fa45-0410-b640-bcd6f8691b32
Merge svn with dev-branch
Merge master with svn
Merge master with dev-branch