[WIP] Spyder integration

This PR implements a very simple integration of the Spyder GUI for session management as discussed in #97. There are some preliminary changes to the internals of the command infrastructure in order to dynamically add external commands.

This is work-in-progress and for review-only, so please do not merge yet.