mapError: add Promise/A+ compliance and corresponding test.
Add documentation for mapError and chainError.