Fixed rest template bugs and pagination engine in github rest api.