codingstyle: cleanup block_mediagallery.php and remove empty locallib.php