Json communication

Working JSON request/UI-updating stuff