Make Element a monad by adding map and flatMap.

This allows using for-comprehensions with Elements.
Add tests for Element#map and Element#flatMap
Merge pull request #59 from nightscape/monadic_elements

Make Element a monad by adding map and flatMap.