getState now includes track id for easier polling

track_id is now part of the JSON of getState. This commit also extracts
getState out to a seperate file, making maintainance eaiser.
Merge pull request #11 from rmehner/get_state_improvements

getState now includes track id for easier polling