Added endpoint module, updated main.js with req routing logic & README.md