Converts the user class to a type

This allows to use the same type several times (whereas a class is
a singleton). Multiple devices FTW!

Closes #3