Updated registerModelHandler

Added an optional binary argument that changes the data that the model
handler gets between string and ArrayBuffer.