Source cleaning

	Make it more ANSI compatible.
Allow application errors to be responded to requests