Added functionality for client side commands to be captured instead of sending to the server. Added a command to clear the backlog. Closes #154