HG-290 Fix table issues

 * Remove excessive margin around figures in tables
 * Remove line breaks before and after figures
 * Hide figure captions in table cells
 * Allow text wrapping in infobox tables
 * Fix border when th elements used before td elements
Merge pull request #349 from Wikia/HG-290

HG-290 Fix table issues