Move various type declarations into a single header file
Move most factory functions into micromag_factories.h
Add debug flag to disable corner contributions in bem