made model-guessing function smarter; works with files

Function previously required an object ID, which files may not
have. Now figures out object ID from path_rel if ID not present.
object document loader function; makes easier to test post()

Very rudimentary JSON file loader. Basically it just adds
object_id to file documents to make it easier to test post().