Fix API: place_name should be place_idx

I had to just include the views.py file into the api.py file to avoid circular dependencies, I'm open to more elegant solutions.  The url_for function seems like something we should use everywhere we're building urls.