APIv2 init
apiv2: model.ref('_user') before passing back to derby functions, much
of our derby code requires _user
add some api
user.set('tasks...'), not model.set('tasks...') @yangit
apiv2: same as before - user.get('tasks'), not model.get('tasks')
Add, edit, delete task\habit\reward.
transform user structure FROM user.tasks{} + user.habitIds[] TO user.habits[] + user.todos[] etc.
added sort API, removed debug code.
fix sort API
added cron update on each transaction.
Merge branch 'develop' into apiv2

Conflicts:
	src/server/apiv2.coffee
apiv2: remove some duplcation from api to apiv2
apiv2 - much cleaned up, by re-using fucntions in api.coffee. misc.batchTxn takes an optional `user` param, in case we don't want to use private paths "_user" (which we don't want to do on the server!)
add in missing `require('misc')`
fixes
no message
Merge branch 'apiv2' of github.com:lefnire/habitrpg into apiv2
reverting the api since its not ok
Merge branch 'apiv2' of https://github.com/lefnire/habitrpg into apiv2
Merge branch 'develop' into apiv2