Reorganizing code 1

First steps to code reorganization.
More modules created - for plugins with only one file this hasn't been done so far.
Templates also stay where they are for now, we will deal with that later.


Not sure what the nicest structure is. Originally thought suffixing is all that will be needed, however I still put directives in an own folder for now. We'll see.