Added Application.c for a framework for application

Not compiled, may have a few errors.