Moved and renamed fileapi

Moved fileapi.py from sandbox/ to khmer/ and renamed it to file_api.py
Update file_api usage

import and usage of file_api have been updated in all scripts under
scripts/