Refactored the code to look even bettar.

Also added tests for BBCodeTableBuilder, but they don't run...