Lots of stuff

Moved some code over to commcore, added changed file structure again,
added license