PHP Media Service Update

Rough pass at parsing media directories.