Refactor xrAPI (fix conventions and move xrAPI header to project directory).