First implementation of getStyleInfo

getStyleInfo returns a simplified JSON format to make it easier to convert to CSS
Document ID should be required. We're trying to avoid adding APIs that make document ID optional. The function should throw an exception if there's no doc ID provided.