REjigged Cache app so that it configurably uses either ets or mnesia
tables.