add grunt docs task

add grunt-contrib-yuidoc to grunt config
output api documentation to docs/ when grunt docs is run