Added a few new fields for upcoming features.

Main code rev. 1914
Added a few new fields for upcoming features.
Added an index to local_resources to prevent duplicate resource creation
when activating large resources and the user hits save twice.