Changed registrar tests to use LogStorage.

Review: https://reviews.apache.org/r/20432
Improved Registrar performance by using a hashset on SlaveIDs.

Review: https://reviews.apache.org/r/19762