Added waitinglist stats.
utilities to sync waiting lists between store and db table.
Added WaitingLoan.dict method to make it easier to dump it as JSON.
Switched waitinglists feature to use database table directly instead of store.