qnd: fixed php errors, pass port to base url and pass cachets to new embeds

git-svn-id: svn+ssh://kelev.kaltura.com/usr/local/kalsource/backend/server/tags/gemini_2012_10_22@92727 6b8eccd3-e8c5-4e7d-8186-e12b5326b719