adding 'asPromise' utility function
fix lint errors, simplify API name
Merge pull request #41 from ambrusc/master

Utility function for wrapping a bare value in a promise