Updated sending/receiving requests from the UI and proper parsing (needs more work on outputs/replies).