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
Remove pointless code.

Add a missing call to parent::setUp() and remove code that it takes
care of.