Move middleware adding from lib to bin
Add tests for mgrt middleware add/apply
Add test for mgrt setup
Add test for sequantual wards applying