Remove some include directives from app.h

This patch removes some include directives from app.h because I doubt the memory shortage on travis-ci is caused by app.h.