Added a new option to allow a customized parser function

This new option allows to parse the HTTP response not as JSON response. In Liferay the file uploads are considered to be an ActionRequest (Portlet API) and this type of requests can only respond using HTTP properties. To fully support and handle this type of responses and others, the parser function should be passed as an option to allow customized parsing functions.

<!---
@huboard:{"order":848.572265625}
-->