Implement /api/file GET/PUT method

This change implements the the /api/file GET/PUT method and tested with the AJAX GUI.