Improved referenced post handling, began to abstract post handling code

* Explicitly found+fetched URLs a post is in reply/repost/like to
* Stored most accurate version of the URL in an array on the cleansed post
* Accumulated related posts in a side-array, also indexed
* Extracted processHEntry logic into a function, made it somewhat recursive (related posts are processed using the same function, but only for one level)