Gemify

Turn this into a gem; make it easy to install etc.