Trigger resource event listener in extended applications

Summary:
To correctly include css and javascript (and other resources)
in extended applications we have to have a listener on their
namespace.

I also fixed some lint errors.

Test Plan: Load some css in an extended application.

Reviewers: JayFrancis

Reviewed By: JayFrancis

CC: seemly

Differential Revision: http://phabricator.cubex.io/D39