Fix requiring in test files
Move doctrine.js to lib/
Split doctrine.js into several files under the lib/ directory