Remove unused $instance from Cli & Web Applicaiotn

This is a light modification of #271 that removing the $instance from Application classes.