Basic prototype for promise support.
Added tests for PromisePrimitive (fixes #4)
Merge branch 'feature/promises' into develop