Composer support.

Added `composer.json` for easy installation using [Composer](https://getcomposer.org).
Changed getUid() from private to public. I needed it in my subclass.