Make the api_* parameters optional.
Make sure not to append '?' if it's not needed.
Fix failing test which has '?' appended to a path.
Test new passthrough params.
Merge branch 'feature/optional-key-sig-passthrough' into develop