Add type parameter for contents GET requests
Expose and use get requests specifying type in the JS
Some fixes for the tree view
Allow specifying format when getting files from contents API
Fix various review comments
Rename get_model() to get()
Add test for /tree redirects
Actually pass URL params with API request
Merge pull request #6900 from takluyver/contents-api-get-as-type

Contents API get as type