Added waiting for response and checked waiting fore response commands.
The waiting for response now operates through the state and the template response. This means that it is outside of the command stream.

WAITING FOR RESPONCE ONLY WORKS FOR BUFFERED COMMANDS EXECUTED THROUGH THE POST COMMAND.