Removed dependency on Spring; changed configuration to use ServletContext