Added Rails autolink gem; some code cleanup