getPopupLink: API showing the pop-up window

functions which were switched to the new API:
renderEditObjectForm, renderPortsForObject, renderNATv4ForObject
improve code reusage when assembling hrefs

makePageParams: new function to fill an array with page, tab and bypass fields
buildRedirectURL: use makePageParams + makeHref
makeHrefProcess: idem
showTabs: idem
makeHrefForHelper: use makeHref
popup handlers are now overridable

new $popuphandler navigation array introduced.

renderPopupHTML: logic moved to index.php. Now it contains only the html
template

makeHrefForHelper: was used only once, removed
getPopupLink: pass page params to popup
renderEditObjectForm: do not pass object_id, it is done implicitly

renderPopupObjectSelector: check for permissions moved to popup handler
handlePopupPortLink: idem
renderPopupPortSelector: idem
renderPopupIPv4Selector: idem
getOptionTree: use json_encode

jquery.optionTree is also patched to understand the tree format
that RT is using: { group_name: { key : value }, ... }
DB API: support for "field IS NULL" where selector

usePreparedDeleteBlade, usePreparedUpdateBlade: use new function
makeWhereSQL to prepare WHERE filter
getPortinfoByName API changed

- avoid heavy amplifyCell call
- in case that there are multiple port with the given name,
	return the linked one. The first one was returned before.
- non-strict mode added to compare port names that are canonized by
	shortenIfName()