Update app template, model template, and project api

 - added middleware to app template
 - removed applications setting from model config
 - models now extend from loopback.Model
 - added get / set module config methods to project