Added the ability to create documents via x-www-form-urlencoded.

Documents may now be created using either application/x-www-form-urlencoded or multipart/form-data POST calls.

Closes #566