Add a Promise#fails function to check for an expected failure

Fixes #26
Clean up per jshint
Merge pull request #29 from wikimedia/issue-26

Add a Promise#fails function to check for an expected failure

Can't think of a better way to do this off the top of my head either. LGTM.