Added Connections Authentication Sample
Added isAuthenticated() and isAuthenticationValid() functions to
endpoint.js