Changes for retroactive application of allocation rules. Need to fix tests: deletes are failing due to foreign key constraints.
Fix failing tests by changing primary key constraint to 'cascade'.
intermediate commit.
Changes to allow the application to run in a subdirectory.
Changes to allow the application to run in a subdirectory.
Changes to allow application to run in a subdirectory.
Change to images_controller to allow application to run in a subdirectory.
Merge branch 'ted'