Changes for Integration with the OpenEMR codebase

Hi Tony,

Please merge the latest changes to OpenEMR codebase. Here is the list of changes completed:

1. Creation of an api directory in the OpenEMR repo and placement of contents of OpenEMR API there.
2. Removal of openemr directory, readme.md and license.txt files.
3. Update of Medmasterpro-API.pdf file and insertion of text file inside OpenEMR documentation.
4. Migration of openemr/api/includes/pdflibrary folder to the openemr/library folder.
5. Wrapping of openemr/api/includes/functions.php with the OpenEMR sql wrappers and conversion of the queries to new security model (i.e. use binding).
6. Removal of openemr/api/includes/class.database.php and openemr/api/includes/configure.php files.
7. Removal of openemr/api/includes/class.phpmailer.php file.
8. Addition of globals to openemr/library/globals.inc.php
9. Addition of api_tokens table to the openemr/sql/database.sql and upgrade sql scripts
10. Addition of user table columns to openemr/sql/database.sql.
11. Version update.

Do let us know if there is any issue whatsoever or any suggestions from your side.