Move flag-related code into new pkg package

I'm trying not to move things that are etcd-specific. In the case of those flags, they are defining entities that matter to etcd. I also don't want to `pkg` package to import *any* other etcd code. It needs to be a terminus to prevent import cycles.