x,y relative positions can be negative, although its rare
Added sanity checks
webservice to reference ref_points is ready
first steps of add_reference.php webservice : input validation/sanitization and RefPoint class