Adjust the structure of the project and bug fixed

> adjust lib file structure;
> add module dependence;
> app.js bug fixed;
> manual merge from master