Reporting: update Tuakiri scripts for Apache logs

Import minor Tuakiri updates
Reporting: scripts to parse Tuakiri Shib/DS logs

Import scripts for parsing ShibbolethDS logs directly
(as produced by Shibboleth DS with Tuakiri extensions)
Reporting: scripts to parse AAF/SWITCH DS logs

Import scripts for parsing logs from AAF/SWITCH DS.
(Contributed by Tuakiri)
Reporting: ShibbolethDS logs: dry-run, spam filter

New features for the scripting parsing Tuakiri/ShibbolethDS logs:

* accept some flags to control behaviour:
  --dry-run (to test the parsing without writing to the database)
  --verbose, --no-verbose, --debug, --no-debug to control output levels

* spam filtering: allow setting a filter in the config file to weed out
  sessions created by spam bots.
  This is based on a real-life use case: spam-bots targeting MediaWiki sites
  are trying to sign-up for an account and end up traversing through the
  DS, selecting the first IdP in the alphabetical order.

  The sample filter handles this: without any better option to
  filter out the spammers, filter out all sessions for this SP and
  IdP combination that are not originating from the IP range of the
  institution the IdP belongs to.
Merge pull request #149 from University-of-Auckland/develop-log-parsing-scripts

Push in Tuakiri work on log parsing scripts
Merge branch 'aaf-develop' into code-develop
Merge branch 'code-develop' into tuakiri-develop
Merge branch 'tuakiri-develop'