major refactoring to make the plugin more object oriented, kaltura client library was upgraded to php5