making reject and resolve helper classes public, so as they work in very nested function when running in dev-mode. Make these functions available in the FunctionPromise class as well.
Merge pull request #29 from manolo/master

Fixing an access exception when running in dev mode.