Added cleanup for HttpWebRequest and HttpWebResponse resources. Added methods for getting current system state from the database. Waiting for PHP code udate to test.
Formatting.
Added utility method for selecting active rooms from list
Added mainloop method and thread timers to periodically call mainloop