Added general JSON metadata retrieval to media capture
Added auto-refresh to media capture, and made all php files independent of server root (python files are NOT)