Replace Gem with Rails Engine

Everything's been replaced with a freshly generated Rails Engine. I copied over some stuff from `master` too but I might have forgotten something. This closes #9.