update license to Apache 2.0
deprecate $timeout parameter to comply with deprecated timeoutSeconds API param