Added automatic source format detection, so hex or binary no longer needs to be specified as a query parameter