allow CONTENT_PAGES to be overriden
better default handling
debug logging
changed .txt mimetype for extended testing
reorganized vars
moved database aside