Add function to rebuild CSS

Added a config variable for the res/css dir and a function to rebuild
any old pages if the css changes.