Minor API fixes [db.executePragmaStatement() deprecated]
Reorganize project
Merge branch 'bg-api-fix' into api-merge-1
Do not send Javascript in separate thread by default