Add map() and flatmap()

As discussed in #11.
`flatMap`. Done.

Also, 2) is an awesome suggestion, I like it a lot.