HUE-1660 [core] Export/import all stored scripts

Use python pickle libraries for serialization.
Create hierarchy of relationships by providing wrapper objects that store
m2m, m2o, and gfk information.

Add 'filename' and 'filedata' hooks so that users have files that can be
modified.