big refactor

use mongodb
support ember-data