Removed apache dependency and moved apache Base64 classes to core module...

Removed dependency of apache commons codec (moved source code from apache), changed servlet-api dependency to provided scope