cleaned-up cache-clearing behaviour

tuned logic to not delete files from directories that will be rimraffed
added comments
added safety
removed some Gruntfile cruft
dropped master param from travis badge
fixed bower_components

oops