Convert event-emitter.js & inheritance.js to modules.

Signed-off-by: suicidepills <atom.mac@gmail.com>
Add deps for map.js, add some init/stub code.

Signed-off-by: suicidepills <atom.mac@gmail.com>