Implement changes in #57: improve behaviour of dumped files
Merge branch 'master' of https://github.com/uqfoundation/dill into new_file_handling
Fixes for test and due to test
Change file pickling to avoid \x00 chars
Add different file pickling modes
Change to use os.open to avoid visible mode change
Add file modes to `__all__`, switch on safe_file tests, improve mode x handling and fix shabang
Add backwards compatibility to file handling
Fix for python 2.5
Add extra handling for x mode
Merge branch 'master' of https://github.com/uqfoundation/dill into new_file_handling

Conflicts:
	tests/test_file.py
Change safe_file to a more generic name safeio
Fix test failure (stupid mistake)
Merge pull request #59 from matsjoyce/new_file_handling

Implement changes in #57: improve behaviour of dumped files.