upload example

Signed-off-by: Tom Everett <tome@criticalmass.com>
skeleton of upload example

Signed-off-by: Tom Everett <tome@criticalmass.com>
refactoring

Signed-off-by: Tom Everett <tome@criticalmass.com>
minor fixes

Signed-off-by: Tom Everett <tome@criticalmass.com>