perl: Some whitespace cleanup
perl: Make IPConnection locks proper members of the class instance
perl: Make Brick and Bricklet classes proper subclasses of Device

This simplifies the code structure and common functions can be
implemented on the Device class itself.

Also make the Device locks proper members of the Device object.
perl: Add authentication support