Did a little cleanup and implemented first "just queryable" psl-cmd.py cmd interface.

Just look through the changes if you think they make sence.
I cleaned a lot of code and removed some functions not needed anymore.
There is more work to do, but i lost all of my local changes because the upstream version changed too much, so i thought i push them right through :)