Add get and getError methods to ErrorOr.

ErrorOr is modeled after boost::optional which has a get method.