Replace old Rails app with engine

Move the engine code to the root directory as the main contents of this
repository.