mv all resources to lib/resources
test travis use node 0.11
support promise and thunk. fixed #6
Merge pull request #7 from repo-utils/promise

Promise and thunk