Feature/310 311 pub reapp ui

Issues #310 and #311 in one delicious easy-to-merge package. Supersedes (now closed) #371 and #372.

See #371 for implementation notes.