implement a network api

implement a network api to control the player from lan/wan and for easier integration with other languages and interfaces