better to keep this under the /app layer for now - in the future can put
the logic into a helper class
adding support for Facebook login logic.  Fixed getRestConfig() function