Initial commit.
Modified getEndpoints service to reject promises on error.
Merge remote-tracking branch 'origin/master'