more modularization

focusing on redis ticket store insertion and deletion.

Should make it easier to turn off ssoff/redis functionality by putting
some if statements in the ticket_store.js code

Modified   lib/cas_validate.js
  strip out the below functions

Modified   lib/sax_parser.js
  use ticket_store.js

New        lib/invalidate.js
New        lib/logout.js
New        lib/ssoff.js
New        lib/ticket_store.js
require the modularized functions from last commit and export
move get_username, create get_attributes in sax_parser

put the relevant getters inside of the code that does the putting in
the first place
explanation/documentation for get_username, get_attributes

totally schizo on how to use these documentation comment blocks.  I
need to adopt some sort of documentation scheme.

Anyway, describe what each does.  If there is no info, return {} to the callback

I thought about migrating the old username functionality, but the
problem is that with connect, you can use any automated determination
of what response is acceptable, like you can with express.

On the other hand, there is no way to tell the user of this library
where I've stashed the username and the user attributes in the
session.  So it makes the most sense to just create accessor
functions, so that these can be retrieve with a minimum of fuss.

also added code so that while get_username just gets the username,
get_attributes will get the username plus the attributes.

No tests of this functionality yet.
tiny mod to session_or_abort

decided to leave this inside of cas_validate.js for the moment

I like this function here
broke out redirect, check_and_return

documented those as well, in the new file lib/redirect.js

Also added more descriptive throws to other functions that now require
cas_host to be set somewhere
broke out session_or_abort

cas_validate does nothing except export functions
further clean up of cas_validate.js

just a shell now
moved session_or_abort to the right place
working through the tests.  fixed logout.js to export function

logout test not yet passing.  need to commit for later working
more modularization

focusing on redis ticket store insertion and deletion.

Should make it easier to turn off ssoff/redis functionality by putting
some if statements in the ticket_store.js code

Modified   lib/cas_validate.js
  strip out the below functions

Modified   lib/sax_parser.js
  use ticket_store.js

New        lib/invalidate.js
New        lib/logout.js
New        lib/ssoff.js
New        lib/ticket_store.js
require the modularized functions from last commit and export
move get_username, create get_attributes in sax_parser

put the relevant getters inside of the code that does the putting in
the first place
explanation/documentation for get_username, get_attributes

totally schizo on how to use these documentation comment blocks.  I
need to adopt some sort of documentation scheme.

Anyway, describe what each does.  If there is no info, return {} to the callback

I thought about migrating the old username functionality, but the
problem is that with connect, you can use any automated determination
of what response is acceptable, like you can with express.

On the other hand, there is no way to tell the user of this library
where I've stashed the username and the user attributes in the
session.  So it makes the most sense to just create accessor
functions, so that these can be retrieve with a minimum of fuss.

also added code so that while get_username just gets the username,
get_attributes will get the username plus the attributes.

No tests of this functionality yet.
tiny mod to session_or_abort

decided to leave this inside of cas_validate.js for the moment

I like this function here
broke out redirect, check_and_return

documented those as well, in the new file lib/redirect.js

Also added more descriptive throws to other functions that now require
cas_host to be set somewhere
broke out session_or_abort

cas_validate does nothing except export functions
further clean up of cas_validate.js

just a shell now
moved session_or_abort to the right place
working through the tests.  fixed logout.js to export function

logout test not yet passing.  need to commit for later working