added support for optional request parameters
Merge pull request #1 from koenpunt/master

Added support for optional parameters