added code-start/code-end legacy block support, started fixing code formatiing in http-api/http-api-single