refactored prompt command parser to work with chat and groupchat windows
moved command parsing code to separate files
updated makefile