Add a new periodic task that cleans up task that the normal Contracts
APITask call may miss.

Called every 6 hours and manually checks each contractID when they are
expired 6 hours ago but still In Progress or Accepted
PEP8 fixes
In fixcontracts group the contracts to lookup by APIKey then character
instead of just APIKey
Don't actually need to group by characters, the contract has the
character_id for the lookup
Derp, don't commit debug testing versions
Don't need to use lookup when we already have the iterated item
Break out of the loop once we find an APIKey with correct permissions
Accepted isnt a contract state, InProgress is
Remove debug print statement
Make the fix_contracts task run more often
Make sure we add any events that may have been created in prior loops
before returning
Merge pull request #63 from Gillingham/develop

Add a FixContracts periodic task to fix expired but unfinished contracts