Early version of ruler and protractor

I copied the code off of stack overflow. It uses kinetic.js to do its
thing. Not entirely sure how it works, which bugs me a lot.