Restx archives

Implementation for issue #51

The `build restx archive` part is not yet implemented (will come later, in another PR)