Add a new get() method for Preferences

The magic method __get() does not allow to return a default value if
a preference is not set. Preferences::get() accepts a second parameter
that will act as a default value.