Added measurement tool

Refactored popover stuff to _PopoverMixin.

Closes #148
http://getbootstrap.com/javascript/#popovers

![image](https://cloud.githubusercontent.com/assets/1326248/4142955/4c2a87f4-33c1-11e4-8c2d-c25cfe8e1885.png)