Added interrupt support

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