Add ticket equality test and representation.
ENH: change addLog to use single SQL statement

ENH: separate out the database creation defination to make updates
easier

TST: add test framework for updates
TST: py26 compatible test
TST: (another) py26 compatible test fix
TST: repr test for Ticket
TST: remove deprecated warn method of logging and use warning() instead
BF: Ticket compared to non-Ticket type returns False
TST: for database.getBans with bantime argument
TST: for db.getFilename
TST: restore Ticket testcase coverage to 100% after addition of exception test in Ticket.__eq__
TST: table create definitations to end in ; for py26 compatibility
Merge pull request #519 from grooverdan/db-migration

addLog to single SQL statement