Beginning integration of the front-end and back-end

The back-end code is not yet complete. I am committing this now so that people working on the front-end can finish the testpage.