add $useThemes option and make themes easier to use

Now have jaymail-dark theme display links properly, add functions to
user.php to make getting information on themes easier, check if themes
are disabled in preferences.php and load proper theme in view.php