[#1108] Export configuration with optional prefix.

Problem description
===================

Just minor changes to go together with #1108 server


Changes description
===================

Add an option ._exported_prefix attribute.

Also extend the internal errors for JSON_RPC to include a stack trace.

How to try and test the changes
===============================

reviewers @alibotean