Made sure all the default tables had the right collation.
Added indexes to resource allocation table.
Added foreign key to resource allocation table.
Deleting of resources now works.
Removed some notices that could cause issues in AJAX calls.
Finished up the ability to replace an existing resource with a new version and keep the same file name.