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

... 'theme_basemap' functionality.
``querybuilder_layer``? Do you mean ``theme_basemap``?