Split out Environment class
Add DBRequest and OpenDBRequest classes
Add primative Database class
Add promise adapter for q
Add request adapter for XMLHttpRequest
Leftovers after some extractions