success and failure blocks to router

renamed api parser class to api router
using generalized method to make api calls