json api implemented for play and pause, webinterface improvements