Added Lock. Implemented ExternalData/Collection.

Changed DatabaseTables to DefaultDatabaseTables.
Transitioning some ExClass subclasses to ExternalDataObject.
Deprecated Exclass created/load/save functions.
Database quickfetch now appends LIMIT 1 by default.
Added method chaining with setters in ResourceState and ActionLogEntry.
Other changes may be formatting issues.