AG: rewrite method code to use method arrays
The proxy line is dumped in the token buffer as any other HTTP header Adapted by AG to move token id to be last in the parsed list
Signed-off-by: Andy Green <andy.green@linaro.org>