moves gh-pages to published

adds method promiseLater (no tests yet)
minor changes to the yuidoc template
moved from lib to src