Added env.js and noty2 lib

Added global error() notification function.