Adds rake tasks and app hooks