added api limit dashboard

allow check of api allowance and reset time. Refactored the rest client.