bringing across updates to the Reverb framework made in the TerrainGen project. Includes adding a project name parameter for overriding the working directory for a site, also CSS file handling
Tidying up - renaming component to componentbase to be in line with modelbase, using non-readonly db connection methods, fixing a bug in gateway