added some functions to make dealing with nested eithers easier
refactor into separate file
Merge pull request #3 from jdegoes/master

added some functions to make dealing with nested eithers easier