Update sql_upgrade.php

The manually insert of the openemr version has being removed and added the code to select the version form the version table.
Update sql_upgrade.php

This code meets:
1.When a sql "version" table does not exist, then continue the current behavior (ask the user for the version).
2.When a sql "version" table does exist, then calculate the version and run the upgrade script without any user input. There will be two situations in this case:
scenario 1: More common scenario where it is a production version(no "-dev" in the version table in the v_tag column). In this case, can just use the version.
scenario 2: Less common scenario where it is a development version (with "-dev" in the v_tag column). In this case, will need calculate the actual version by integrating the version in the version table with the upgrade files in sql/ (you will need to go to one version below what is in the version table; note you can do this quickly by using the $version array which is already being created in the current sql_upgrade.php script at line 37).
Upgrading sql_upgrade.php
Delete sql_upgrade.php
Create sql_upgrade.php
Modifications for module installer in openemr.
Zend framework 2 based module installer that can be used to install and integrate custom modules developed as separate modules into the openEMR. The application module is the core module which contains the database handling functions and other common functions. Please find the documentation for the same in the following links:

WhyModulesInstaller.pdf - http://sourceforge.net/p/openemr/code-review/232/attachment/WhyModulesInstaller.pdf
ModuleInstaller-DeveloperGuide.pdf - http://sourceforge.net/p/openemr/code-review/232/attachment/ModuleInstaller-DeveloperGuide.pdf

Please refer line no.26 in zend_modules/init_autoloader.php for setting up ZF2 Library Path Settings.

Signed-off-by: Ajil P M <ajilpm@zhservices.com>
ZEND project: removed the DeleteAcl() function in interface/modules/zend_modules/module/Installer/src/Installer/Model/InstModuleTable.php
ZEND project: set writable permissions to zend module config file at interface/modules/zend_modules/config/application.config.php
Added the zend framework 2 library, the path is specified in line no.26 in zend_modules/init_autoloader.php.

For using custom ZF2 library change the path in the specified file.

Signed-off-by: Ajil P M <ajilpm@zhservices.com>
Upgrade phpmyadmin project (commit 1 of 3; This commits removes old phpmyadmin version)
Upgrade phpmyadmin project (commit 2 of 3; This commits brings in phpmyadmin version 4.2.5)
Upgrade phpmyadmin project (commit 3 of 3; This commits integrates phpmyadmin into OpenEMR)
incremented the v_database counter for the database changes in prior ZEND commit
Fixed pharmacy list selector to indicate when current selection is not in the list.
Fix for encounter forms too wide in patient report PDF output.
Added support for fields in LBF visit forms for document templates.

Conflicts:

	interface/patient_file/download_template.php
Support for the CMS Patient Portal.
ZEND PROJECT; support in setup.php script and in ubuntu/debian/mint packages
Save lab-generated order ID and show it in results display.
Fix for pubpid assignment by CMS Portal. Cosmetic fix for procedure_order.control_id type change.