correct indentation
Explicitly check for missing siteConfigDirectory setting #3705 and let
handleCommand handle/surface all exceptions.  Surface as HTTP errors for
now.  Could pass back error messages in the JSON for the client to
handle #3691
use StringBuffer
set response to declare json mime type