Fixed a couple GUI bugs:
 - serialization error on library save
 - error when switching to edit mode when there are no libraries
 - error when switching quickly between to edit modes (not exposed in the gui)
 - no ability to add a library when there are no libraries
Libraries are now created in its own dir (vs the Library root)
On library reload there is a check for no libraries and a new one will be created (if there are none)