added get_plans and get_plan_keys method;
changed request to correctly use get or post requests.