Linux Fixes and Additional debuggery

Fixed Unix loads, added a loadmode setting for debugging between local
and external library loads, made librarian able to write both unix and
windows files at one run, brainstormed next database structure (json
based instead of xml based, see notes.txt for more information)