Add getConfig and getResult

Needed for moonboots-hapi
Merge branch 'master' into hapi

Conflicts:
	package.json
Make getResult callback conform to cb(err, result)
Style cleanup