[WIP] Cleanup file info formatter

- removed "type", can be computed from "mimetype"
- removed unused "date"
- the property "path" is now always returned to the client
- added unit test

@icewind1991 FYI
It would be better to keep `/$user/files` in the path and handle it on the client side imo