Adds routing and handles basic responses