Remove global database references
Refactor text rendering

Instead of generating html in html() methods, a generic renderer
visitor is used.
Text renderer indent using Python's with statement
Add project class

Project class contains objects necessary for analysis, such as
the database and rom. It aims to simplify dependencies between modules.
Remove global flow cache
Cleanup imports