Fixed GitHub OAuth error on Body object. Fixed error propagation through promises on GitHub OAuth

Body object was no longer a string so calling toString converts it into desired format to use search method. Added returns for promise code so that the higher level .catch function can catch any errors that happen in nested promises.