Added bap code of stack1 and httpd, as well as the original code of httpd