class refactoring

some class refactoring (WPSClient, TrackEncoder).