- osc.wc.project, osc.wc.util, test.httptest: beautify "global" usage

Move "global" statements to the top of a method