Support for api documentation generation

- yuidoc integrated
- grunt updated, use grunt doc
- some sources updated to contain example documentation