Added some basic login protection for server methods and publishes. Fixes #14