Added app type definitions.
Added a bunch of type metadata to controller and service ts files.