src: add Account registering/unregistering events
src: misc cleanup
src: move Transport to C++ and add PJ_* constants in JS
src: add more Account instance methods
src: add setting of Endpoint config
src: don't shout so much
lib: style
src: fix spacing
src: support custom log writing function
src: default to UDP for new Transport
src: fix various config assignments
src: remove old comments
src: add mediaMaxPorts()
lib: add some initial constants