Add config loading from other folders
Add rpc method to retrieve config
Trivial fixes/notes
Improve config serialization.
Fix login process to use EventEmitter better.