fix detail screen js to accept new format

* simplify by removing referals UI
  ! 1.0 apps will no longer have that section available
* clean up some things found along the way
  - fix doubly serialized JSON