Refactoring

I was using prmd for a few projects and found some clunks here and there in the codebase, I've tried my best
to fix most of the clunks I found, while others are still present.

So of the changes where specific for flynn (such as response_example hacking), this may be useful in the future of prmd.

Much better! Thanks for indulging me :)