added check to ensure a user is logged into the pages and apis
changed the api redirect to 401 error when attempting to access it without logging in
Merge remote-tracking branch 'upstream/master'

Added a fix to prevent users from accessing the publisher pages and api without been logged in.

If an authenticated user attempts to access a publisher page they are redirected to the login page
If an authenticated user attempts to access the internal API a 401 response is sent.
Merge pull request #34 from splinter/master

STORE-160 Fix