/rest/: Improve self documentation

Opening up /rest/ will now display a list of available rest modules

Additionally, if clicking on a specific function, it will include
shell and javascript examples, although a little limited, since
we cannot generate examples for arbritary arguments.

Affects #281
/rest/ - added more unit tests