Auth node

Refactor files, added config file