FIXED - reformat complete now needs polish

Before any more features are put in:
-- implement server side "event dispatcher" format
-- Do requireJS structure properly
-- Implement handshake for "reqclosefile"-> "closefile"
-- Make server do exclusive lock on files that it is editing
-- filter debugging messages