Added Embedded App SDK, refactored controllers