Rails4 fixes

fixes asset urls. Also adds eager loading option.