Fix tilejson errors

Pretty much what it says on the tin:
* Fixes #4071
* Loads json files into ifstream as binary data
* Moves initialization of the cata_tiles object tilecontext to a function called after curses_init to errors that get displayed through debugmsg from crashing the game.
* Now also fixes loading of artifacts.gsav as binary data!