Add tslint configuration and 'make lint' target

Also add an initial unused-var rule and
remove several unused vars and functions.
Add additional lint options and fix code accordingly