Add unit tests for presigned URLs
Add more pre-sign tests, more pre-sign refactoring

Adds presigned support for JSON-RPC services.
Also make sure sessionToken value is tested in generated URLs.