Added device- and protocol-specific commands.
Also added deviceState model, which is desperately needed for certain faulty devices who only have a "toggle" function, refs #12