Move js/css libraries to a lib/ dir

This way application code won't be bunched up with libraries. I also
refactored the code and tests to be much simpler. I have a global
Resources struct that I'm using to hold information about the styles and
scripts.