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 #80 from nightscape/monadic_elements_dev_2_1

Monadic elements dev 2 1