Refactor for Emma API changes and add MIT License.

Convert username/password to public_key/private_key, save response headers for in-depth debugging, allow empty fields in import_single_member function, and add MIT license.