Adding an API call for getting the root path of an item.

Also fixing some style and adding a backbone model call to the
aforementioned API call.