all flask-assets changes, including the copied image files to new directories so that the compressed files can find them

further consolidated js

added debug mode to assets