generic template handler
transform anything array-like into an array before XML-serializing it
get error handling and login in cbapi right
also lowercase methods given by post params