several improvements

Added cut&paste for Windows/Linux
Started implemented history (non-functional)
Fixed bug in formatting of code
Made toolbar a bit smaller
Refactored Editor API slightly
Made RPC call from worker consistent met JSON RPC spec