Added master and auth modules, basic tests