Add logging to Cowry errors
Redo File hack for old browsers