[api] move issue rendering out of the models into views
[api] move rendering of configuration xml into a view