fixed get and select shared directory and added a file for global variables.
Fixed incorrect global variable declaration.
Api server now has simple authentication in place, yet to be tested.
Authenticator still not tested, compiles now.
Added addAuthStamp() function.
Merge remote-tracking branch 'origin/api_to_api' into rpc-functions

Definintely not bug-free!

Conflicts:
	api/src/api_server.h
	api/src/main.cpp
	api/src/main.h