Fix markdown error.
Refine app class structure and restrict web module from accessing app object.