Moved DEBUG_ONLY_FEATURES flag to com.js.basic.Tools

Made ASSERT methods do nothing if this flag is false.
Also, removed / changed some assertion code.