CH-1164 Added drush command to get segments

Also, added response code check to getSegments and more complete error handling/error reporting
Oh sorry - I didn't actually check, just assumed :-/
I am noticing some test failures though so maybe just the test needs to be fixed?
You can run the tests from the command line with a drush command:
`drush test-run ALProfilesAPITest --uri=http://your_lift_install.local --dirty`