Defer initialization of database and resource cache until after server has started
Adds logic to defer the init of database tables until after the C++ plugins have had a chance to execute their startup logic. Fixes a startup issue encountered when deploying Orthanc for the first time (refer to #21 (closed)).