Fix basic uploading capability and make it possible to periodically validate token to keep it alive