Added support for new Files API (#1). Commit has been moved from trunk. Initial commit by Gustavo Hansen.