add direction normalization for popups
add direction normalization for popups

it makes possible to set x/y values in any order i.e. 'left top ..' and
'top left ..' is equivalent
and now only correct sequence may be used for direction

istrel/basisjs,istrel/basisjs,smelukov/basisjs,basisjs/basisjs,tyanas/basisjs,smelukov/basisjs,fateevv/basisjs,fateevv/basisjs,istrel/basisjs,tyanas/basisjs,basisjs/basisjs,basisjs/basisjs,fateevv/basisjs,tyanas/basisjs,smelukov/basisjs