factor out settings-related functions to own file

This allows us to add more complex functionality to the
Settings/String conversion functions.

Change-Id: Ic4896868914d7f6e5a0bbd64beb0d64d3fd82ce7
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>