psfunctions from text to hash, remove used* flags
move units to Setup (not easily a fixed resource)
resources shouldn't change, so make each proc separate
rename psfunctions to psresources which is more accurate
move to internal function to add to page

This allows the page structure to change to a list/hash etc
without having to update all the methods (at least, not in too
much detail).
update tests