def parse_frame(frame):
    """Init with defaults. Guess empty fields from URL or fail."""
    result = dict()
    result.update(frame)
    result['version'] = frame.get('version', 'master')
    result['access_method'] = frame.get('access_method', 'git')
    return result
