(refs #115)Add table and model to store public keys
(refs #115)Fix TestCase