Add gemspec

This PR adds a gemspec so that this gem's repo can be referenced directly in Gemfiles, and fixes a minor issue with the rdoc task and shifts the version number into code for convenience along the way.