Fix tests and add some bbcode parsing tests
Implement resolving image URLs