Adds a method for getting the type of a file (since the API doesn't return it) and adds a CSS class for type