Partial consolidation with psp-std.

Moved bits of dependency-free code into psp-std, and added
it as a dependency. Performed reconciliations.

Promoted Index to a value class.