[core] Sasl fixes

Need to guarantee that strings are being sent to saslwrapper.
Need to use principal defined in hive-site.xml when connecting to metastore.