rename project manifest->metadata
fix errors which jshint reported
fix priority and setting bugs