Changed tastypie api url to accept hostnames. Fixes #111