Add seajs.dir property
Add specs for seajs.dir
Fix a bug for plugin loading. close #652