Made an interface for the dispatch and refacted a dispatch class that uses http resquest/response and routes to get the proper controller and action methods.