added Result.apply
Merge pull request #6 from sythe21/result.apply

Merge in a changed request that allows Result.apply to handle exceptions better.