Add script and scriptreplay applets

Usage :
/ # script -t /data/local/script.test 2>/data/local/script.timing
/ # scriptreplay /data/local/script.timing /data/local/script.test

Change-Id: I89deac5161f93278fc477b57632eb717947075cd
android: use compatible hasmntopt() return type

To fix all swapon/off compilation warnings

Change-Id: I5a9d7fa23e319dde3ad4d0733ea89246628c9d12