Server alternative

New server api implementation completed.
Users plugin and auth service updated to use new api.
Directives are updated to use new state service.