-Remove junk logging
-Init history writer when form created
-cgate lib changed to one for linux