Update RecentPages.php

* Changed file documentation
* Added protection against direct calls
* Added I18n support
* Small tweaks