[WIP] Make linefeed/indent configurable

Added the necessary options to the context and tried to implement the output for newlines accordingly.