Analyze and add unit test. references #2275
Fix peripheral on unique import. references #2329
Fix monitor and printer uniq import. closes #2329
Fix update bios data. closes #2322
Fix problem on IP on networkequipment discovered. closes #2321

Conflicts:
	inc/communicationnetworkdiscovery.class.php
Fix sql error. closes #2323
Begin fix locks. references #2272
restore static groups

references #2337
fix #2303
start fixing and simplifying json input code

This commit breaks a lot of things but intend to clean and simplify some parts of code

references #2290

Conflicts:
	front/deploypackage.form.php
	inc/deploypackage.class.php
change value display methods and use POST values

* Add explicit params in displayAjaxValue like the display mode

references #2290
remove packagesubtypes ajax

This file is not needed anymore.

references #2290
add explicit params to displayForm methods

Like in previous commit, i've added the display mode params in order to simplify subtypes display
conditions.

references #2290
simplify actions subtype editing and displays

references #2290
simplify files subtype editing and displays

references #2290
add new order's methods

references #2290
remove duplicated input tag
remove forgotten commented code
fix typos in method call
remove debug call
simplify checks subtype editing and displays

references #2290