created the systemtray stuff

Can now min to tray, etc