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)
Changes after Julian comments
One last change after Julian's comment
Merge pull request #8 from ashyonline/first-changes-for-algron-project

Lib changes