fixed global media id and removed var_dump from encoding
Merge branch 'master' of https://github.com/rtCamp/rtMedia
Merge pull request #476 from Ritesh-patel/master

fix global media id after media upload hook