Fix #410 except the quote bug.
Fix travis failing hopefully.
Fix missing bytes parameter. Thanks @arlolra
Move "type" in JSON to the root object.
No idea how this got here.
Merge pull request #413 from Dirbaio/master

Fix #410 (except the quote bug)