Refactored prompt command parser to work with all window types and moved command stuff to separate files

chat and groupchat windows now use said parser, so all prompt commands should work from any window.