Reworking model into YUI
Replaced db module with one based on juan's pomises a+ implementation. More to come.
Removed db.js
git status