Partial BBCode parsing for JSON GUI

Functions for parsing [img] and [link] BBCode tags were added to the
JSON GUI interface. Parsing of the other BBCode tags (e.g. [b], [color],
etc.) will come later.