Merge pull request #475 from Ritesh-patel/master

new hooks and fix query for multisite
fixed global media id and removed var_dump from encoding
Merge branch 'master' of https://github.com/rtCamp/rtMedia