Added partial server-side support for MCTRA's security pane

Refactored all auth stuff into its own package under remote