Bug/magpie stack objects

The console object caused trouble because it was not released in time. Since it is a stack object it caused magpie to crash under certain circumstances.

This patch fixes it by using aggregation instead of a contained, stack based object for the console.