some enhancements on SeafileApiRequest

- [api] add HTTP put and HTTP delete support for apirequest
- [api] force use PercentEncoding for params in the api request
what about using a template version, compiling with is_put flag statically sounds cool.