Thread-safe Access API

- Check if the folder ~/config/ exists, if not the create it. Checked in Main and Network.
- Added constants for strings that are frequently used so we do not continously create strings each time.
Signed-off-by: Steven Downer <grinch@outlook.com>