Register plugin types in modules.

Change-Id: I99dbd53cc95dda140f41248935294e0bcb6ba46b
Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>