Created firmata-lib.js to expose server API to client.