result reorg wip
refactor result to unify error classes and errors
Merge pull request #39 from ocamllabs/result_reorg

Result reorg