Reduce number of SQL queries for stylesheet requests, split-up code for admin and public requests.