Refactor inline widget code into it's own file/class: ProblemWidget.

@MiguelCastillo Please review -- for a Brackets source code example, see https://github.com/adobe/brackets/blob/master/src/extensions/default/WebPlatformDocs/InlineDocsViewer.js.