Revert "Remove metastore related code."

This reverts commit 114a77457a83b9d6632dd457a0ddd0fe69124461.
Remove shade exclusion on Apache commons lang