Register as AMD module and expose in Node module.exports (fixes #154).

Conflicts:
	Gruntfile.js

Cherry-picked from versatica/JsSIP commit 4c12970