Fixed urls

Also renamed key, secret to app_id, app_secret. and some little fixes