So rules need to be able to return information about how to display the information they are querying. Might as well use HTML?
Also need to be able to output forms that can then be used to insert new data and/or update data in the database.
How should the pages post data back to the system?
If there is a login system, you just need sessions