add REST documentation for ui module

I created https://github.com/oaeproject/Hilary/issues/987 for this. The mark-up here is fine so this can be merged without this comment directly addressed.