embeddeddb: split project into modules

This lets us get rid of optional dependencies and help with
dependencies management in Kill Bill.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>