fix config.class issues
fix folder.class issues
streamline template.class config referral
add user detection from uri for profiles etc.