changed cancan ability rules to allow json, no longer need separate public url. also changed source of default_url_options to config files so that test/development/production can use different urls.