Add folders to backend

This is a monster of a pull request - my apologies 
I will setup a walk through documentation and append in a few hours.

in short:

* removed the file system backend
* replaced with dbase
* changed security method
* not yet replaced / integrated the API calls for Phil