Added interrupt support, including GPIO interrupt export to userspace and blocking input read method.