PBS Parser Tidy

- Change asserts to if...raise ValueError.
- Tidy up PBS parser and test to be more extensible.
- Quite a bit of whitepsace tidying.

These changes are quite similar to the ones I made to the SLURM parser and test.