Does 'master' only refer to male (not female) owner of animals?-- Strictly, yes; the feminine form is 'mistress', which unfortunately has another more common meaning nowadays. It is better to avoid both terms: they are dated.
Can I use 'master' for any other kind of animals such as mice in addition to dogs?-- No, that would be ridiculous. 'Master' has to do with controllin