mapsharing implementation with new code base
re-implemented locks for saving + fixed a bug in the main menugit add src/main_menu.cpp! (now you have to pull it)
fixed up a fail in mapbuffer.cpp
locking for save files is now really finished (now you should pull, pleeeeaaase)
added the setup tool for servers
added --configdir cli option and made default char name be empty when not sharing (now it's definitely finished, no more commits. it can be pulled :p)
put FILENAMES and related functions into own namespace (how it should be with all globals), and fixed the cli options. Now it REALLY should be finished ^^
forgot some locking code in savegame.cpp and worldfactory.cpp
Took FILENAMES out of the namespace, and added a fopen_exclusive function to open with file with locks
fixed the --basepath option and removed an unused variable from mapbuffer.cpp
Removed other orphaned lock variables
Merge mapsharing implementation.