Rewrite of config

Rewrote the config to use nedb. This way it is usable on mac and pc.