PHP rewrite of prevous Rails site.