Couldn't you have just used 8-direction behaviour instead of all of that xspeed logic for movement? Can't really help with the collision on the border as I'm not sure what you've done but I would guess you can limit Y movement when the UI collides with the left/right side of the ship.
The scrollto behaviour is working as expected. It scrolls with the ship when you move out of the 1280x960 window view.