Got a working implementation of PFQuery, mangled a lot of code in the process. Don't merge