First working prototype

Needs some work though.  This "adds" AE procesing to the overall
MH loop code processing time.  With a refactor AE can work while
MH is asleep.  This will be especially important if more and more
of the core MH processing is moved to the AE loop.