404 and media fixes

* Added basic 404 for non html/php file requests
* Updated WP nav walker
* Updated related posts function
* Started new feature to manage media duplicates