Continued progress: add auth functions and refactor store to allow non-local service