more messages api & views - did a hacky thing with thread ids in controller, needs to be fixed