Changes to how links are handled/MEC app is opened - fixes #52 and fixes #51