Source File Upload Tests

Add Uploaded source files testing. Handles success and error case.
Exception located in error cases, these tests are expect fail.
Added a 'Critical Error' check to BasePage and some hard defaults
for the document storage dir.
Added an action to delete the stored files on database reset.
Slight modification of ids in Source Documents pages.
Modified the database generation scripts to drop all objects, as the backup
would use CREATE instead of CREATE IF NOT EXISTS thus sequences would fail.
Added a test file generator class to avoid keeping files around.