Emas application

Introduce `emas` as sepereate application depending on `mas`.

There is still some work to do to make it all wright, but at this point is should be running without any major hiccups.