Use Json IPC for mpv 0.7+ on unix

This fixes issue #155. It will need some clean up before merging.