Added type to the register function
Fixed: updated RegistryTestCase::registerDocument to support types and changed test to have unique documentId.
Merge pull request #7 from liip/AddTypeToRegister

Added type to the register function