karma: store concurrency keys in hash

then, instead of setting expire on each key, just delete the entire hash every X minutes (smaller keys names, fewer DB operations, no issues where a key that should have expired didn't)

prefix ASN keys with 'as'

added function get_asn_key (reduce code duplication)
Merge branch 'karma' into toaster