Adding support for relation between functionalities and themes. Also add...

... 'theme_basemap' functionality.