Add metrics library to track request and print times .

Also enables one to obtain the thread dump and jvm stats via http request.