Parse config file according to content

Use a map for StyleGuide to config content type, instead of relying on file
extension.

Fixes an existing bug:
https://app.getsentry.com/app20126465herokucom/production/group/36491968/