fixed #79  Invite a Friend button now only shows with a project context.

API now had logic to deal with getting a project context from the host in the URL, and throws if there is no project context