Add decorator support for Registry.register with optional arguments

Fix #95
Merge pull request #189 from cbmi/issue-95

Add decorator support for Registry.register with optional arguments