Merge pull request
#1845 from fperez/magic_inspect...
Merge pull request
#1845 from fperez/magic_inspect
Fixes to inspection machinery for magics
Now that magics are generated via decorators, the inspection machinery wasn't finding data about them such as source code. Fixes that along with some refactoring, cleanup and test additions.
Closes gh-1799.