Factor out mp_state related code to metaprogram class
Factor out print_current_frame from templight_trace
Move trace printing functions to metadebugger_shell class
Replace templight_trace class with metaprogram completely
Use C++11 foreach instead of boost foreach
#include cleanup in metadebugger_shell