Make JS,CSS,IMAGES conditionally defined.

This allows app's to redefine these constants as necessary.
This makes these constants consistent with their *_URL relatives.
Fixes #GH-1170