Adding support for import/export of objects.

see #491
wip: relay domains.

Fixed various issues about:
* Permissions
* Limits

Unit tests were also added.

see #491