changed the method to build html
reorganized the html templates
added clutch and couchdb support