convert into a rails engine

How would you feel about turning this into an engine? 

I know this diff is huge, but the only thing that was really necessary to change in the code itself was how the tab links were generated. The tests still pass, I just had to set them up to use the routes in the engine.