Add counter support to REST Explorer

+ Move ./static/ to ./ui/
+ Consolidate the UI a bit.
You'd need to add the ui folder to the tar invocation above. But my pr changes it anyways, so if you merge before just leave it as is. Otherwise, you'll have to rebase anyways.