Merge pull request #21 from meeh420/master

Adding support for config file
Merge pull request #22 from meeh420/master

Should fix compilation error on some systems
fixed HMAC calculation. Tested and verified
fixed compilation error and potentil memory corruption
Load netDb from data directory