Stand alone complex

Add support for use outside of Rails applications in Engines and Railsties. Lots of goodies in here. Please to enjoy an commit.