AMENDED AND RESTATED SHAREHOLDERS AGREEMENT among Amerin Corporation, Gerald L. Friedman, Stuart M. Brafman