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

https://wikia-inc.atlassian.net/browse/HG-290