Added ability to automatically import modules
Added ability to automatically import modules

I thought: Well, isn't it a bit redundant if I go ahead and say in my
config "import this-n-that and temp and load and alsa" while later
just giving register() the modules.
So register() (/ClassFinder as the backend) now support just naming a
module as the first parameter. That module is then imported and
searched for a class as usual.

Just for reference the synopsis of Status.register():

register(mod.SomeChecker())
register(mod, setting1=..., setting2=...)
register(mod, {"setting1:":, "setting2":...})
register("mod", setting=1..., setting2=...)
register("mod", {"setting1:":, "setting2":...})

Fun fact: Actually register() doesn't care for it's arguments.
They're passed straight into ClassFinder.instanciate_class_from_module
(something I should definitely rename), which checks if it's first
parameter is one of:
-Python module
 => It calls ClassFinder.get_class with the same parameters
   => get_class will search the module using ClassFinder.search_module
      and return a matching class if and only if there is a single matching
      class in the module
-string
 => It calls ClassFinder.get_module to import the module and calls itself
  on the result
-something else
 => It returns that something

The actual variation in passing the settings (keyword arguments vs. dict)
is handled in SettingsBase.

schroeji/i3pystatus,fmarchenko/i3pystatus,Arvedui/i3pystatus,ismaelpuerto/i3pystatus,yang-ling/i3pystatus,paulollivier/i3pystatus,juliushaertl/i3pystatus,claria/i3pystatus,MaicoTimmerman/i3pystatus,MaicoTimmerman/i3pystatus,m45t3r/i3pystatus,eBrnd/i3pystatus,opatut/i3pystatus,facetoe/i3pystatus,onkelpit/i3pystatus,Arvedui/i3pystatus,richese/i3pystatus,plumps/i3pystatus,paulollivier/i3pystatus,opatut/i3pystatus,teto/i3pystatus,Elder-of-Ozone/i3pystatus,m45t3r/i3pystatus,asmikhailov/i3pystatus,eBrnd/i3pystatus,drwahl/i3pystatus,enkore/i3pystatus,schroeji/i3pystatus,yang-ling/i3pystatus,onkelpit/i3pystatus,facetoe/i3pystatus,ncoop/i3pystatus,fmarchenko/i3pystatus,plumps/i3pystatus,Elder-of-Ozone/i3pystatus,claria/i3pystatus,teto/i3pystatus,juliushaertl/i3pystatus,drwahl/i3pystatus,asmikhailov/i3pystatus,ncoop/i3pystatus,richese/i3pystatus,enkore/i3pystatus,ismaelpuerto/i3pystatus