Fix logger issues and introduce Rails Application env
Only load memcache fix when memcache used to avoid errors
Test rails and memcache environments
temporarily minimise travis