Initial commit, there is a bunch of stuff that needs debugging at the moment, and the whole database model needs to be transfered into sql files, but this gets my thoughts off the chest, so that i can go to sleep...