Use metasploit-framework handler types

MSP-9228

Use real general handler types and handler types for factories.  Also
enforce that handler_type is one of the known types instead of just
being present.