Added section splitter as part of a new formatter architecture

This will help the structure of the app to be more modular.

Also removed similar functionality in the pagination phantom script.
moved sections data to a much tidier place
Added image fallback, image resolver and to html formatters
Abstracted formatter methods from main into a separate module

This is to allow for passing options to formatter methods without
breaking the existing structure