#15 #4 Partial support for internal commands and interceptors.

Added infrastructure for interceptors. Also laid out how "echo" command
will be implemented.

This implementation sucks and is rather messy. Clean it up on the next
train ride.