wire up support for loki indexed db adapter

added configuration options to loki constructor to specify
persistenceMethod;  currently supports 'fs', 'localStorage', and
'indexedDb'... if not specified it will fallback to environment
detection.   Renamed saveToDisk() to saveDatabase()