First, second, and third pass at SSL uploads.

Fixes #50