Added formatted response option to response dialog

Note this depends on an external library vkbeautify.js. This can be
removed. Currently the test client supports formatted views for json and
xml. For other content types the formatted view is hidden and only raw
data is shown.