As for number 2, you can follow up number with the calculation for the Y coordinate as well with little effort.
For number 3, I assume you mean on which side of a line, because if you really mean a ray then you must explain what result you want if the point lies on the line containing the ray but not the ray itself. If you do in fact mean a line, a quick check to see where the line is at the point's X coordinate (must have it's equation in y = mx + b form) will yield the answer.
I can type some quick code up for you if you need it. Just email me at: splat@bancroftpress.com