Lots of Changes

Implemented large parts of the command executor class and some features
that were necessary for it to work properly.