Initialize SubmitQueue before starting App.

If there is any 'Pending' or 'Running' submissions, we need to
push them into the queue before starting the App.
Log SQL queries and the submit queue.
Merge pull request #32 from asi1024/logging

Initialize SubmitQueue before starting App.