THIS IS NOT YET WORKING, but trying to debug why it isn';t working.  I suspect pointer issues.
Now it is able to register pageviews, and to do redirects.
Will need to review the changes I made, and also need to remove too many logs I have now.
It has some minimum working functionality now.
Side comment:
FIXED MY ISSUE!
It was a logic issue.
Super dumb one too.