Support multipart/form-data in utils.authenticate

Fix #1