Introduce com.sun.star.util.thePathSettings singleton.

To replace single-instance com.sun.star.util.PathSettings service,
incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f

Keeping util::PathSettings::create in
sc/source/ui/vba/vbaapplication.cxx because for some reason
util::thePathSettings::get does not work in sc_macros_test
while testing sc/qa/extras/testdocuments/Ranges.xls.

Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
fwk: Constructor feature for single-instance FooBarFactories.

Converted them as usual service implementations.
Otherwise - if static singletons are used -
it does not show menu for some reason.

Change-Id: I0673d0bfbba268728a3fa676f2af95aa6c74bbb2
Introduce com.sun.star.ui.theWindowStateConfiguration singleton.

Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
fwk: Constructor feature for single-instance WindowStateConfiguration.

Change-Id: I0537d7a30b6c6807bf746a52dbd2c7fc66607ae2