MAJOR UPDATE. RESTful. SQLite db.

Rearranged package structure
Created 2 database entity mapping objects
WILL NOT WORK. UNTESTED
removed all jinja2 global variables
state now only preserved in DB