Output CSS in correct order (allows overrides by app
Client side functionality refactor