Rdate support

This pull request also switches to PSR-4  and moves the unittests in a different directory, so it's diff will likely be completely pointless.
.