Lib changes

* Force it to use MediaCodec API 2
* Use dummy surface view in server side to avoid freezing
* Commented unused method that introduced errors after merging PRs
* Commented method measureFramerate call to avoid bug with framerate (if we use this method, the framerate parameter is ignored)
Hmm ... I must have changed this accidentally. I remember reading about the parameter and concluding 1s was fine. I don't have a strong opinion. I would suggest leaving it in 1 if we don't have a good reason to change it, so that we can more easily track what we really do care about changing in the library.