Started re-writing unit tests.

Some simple ticket tests are working for the in-memory ticket store.
BUGFIX: /serviceValidate should only process PTs; updated some of the error codes returned; corrected some tests
Added PGT tests; return Failures rather than raising errors in ticket stores.
Added tests for TGTs; finished updating ticket stores to return Failures instead of raising exceptions.