ENH: Make use of functools.wraps for server.database decorators
ENH: Refactor and add database matches and failures for sendmail actions
ENH: Add cache for database getBansMerged

This is avoids duplicate queries when using the ip(jail)matches and
ip(jail)failures in actions