Extract app skeleton. Start work on mongo native.

Also extracted mongodb native driver Q wrapper into separate module.