Feature/specs/spec catchup

Adds a few bug fixes and a lot of specs to Mdm
Also migrates a lot of factories into Mdm where they belong

Verification Steps
- [x] VERIFY Mdm specs pass
- [x] Build local Gem
- [x] Install Gem in  Pro and verify https://github.com/rapid7/pro/pull/745
- [x] Install Gem in Framework and verify https://github.com/rapid7/metasploit-framework/pull/1905