added optional mediatype to override default on specific requests
added temporary solution for url form encoded serialization
removed modernhttpclient because of Android issues