api2install.sh
- Improves handling of parameters
- Adds return code check for some operations
(cmake is not checked as it seems to return error no matter what)
- Fixes a few bugs
- Improves some output and comments