Bump to rails 4.2. Various fixes