Change all widget html and css references to relative paths, fix a few code style issues in the tests