Fix snapping height for notebook screen size
Generalized AJAX call scheme, make aps_lookup secure