Implement initial support of leveldb

- Implement initial support of leveldb database backend
- Fix bugs with leveldb like double opening of database

Open-webOS-DCO-1.0-Signed-off-by: Maksym Sditanov <msditanov@luxoft.com>

Change-Id: Iafb775b256de06f5beceb060c683effcb983982f