Added a page for room settings.

Also reworked and simplified a lot of code.