added gitignore file.
updated library to make it more consistent with others. Updated addPublish, send, and connect methods.
made some additional minor updates to the new library in dev branch.
updated library so that it is backward compatible while keeping the connect and onCustomMessage updates.