Moved library pre-loading before framework initialization. Fixes #324.

Also improved diagnostic console output.
Merge branch '324-preload-libraries-earlier'

* 324-preload-libraries-earlier:
  Moved library pre-loading before framework initialization. Fixes #324.