Rework WIP; refactor urls; add static_pages; adjust settings for test db; some cleanup