Reorganised the base skeleton.

The previous skeleton did not work so well, this adds more seperation
between framework files, public files and app files.