Added basic template pages and server side handlers.