move modes API to deep.js
Merge branch 'master' of https://github.com/deepjs/deepjs