Ensure class can be extended, add support for remote dev environments

* Leverage late static bindings to truly allow the class to be extended
* Add checks to prevent infinite looping during the_content filter
* Allow simulation of elastic search outside of wpcom vip
* Filter the raw query result set before assembling related posts - especially useful outside of wpcom VIP