Fixed problem when returning an empty document list
Added CORS support solves #24
Add migration
WIP