Modified servletprocessor and staticResourceProcessor so that they can
be run in separate threads.