AS7-1534 Support alternate data stores for EJB timers

This commit forms the base of database backed timer support. It also cleans up a lot of the existing timer code.