Added ServletBase class to put all common servlet code in.