Don't randomize script identifiers (may brake certain client script implementations)

TbApi needlessly generates new unique IDs for all scripts it registers, which may brake client script implementations (well, mine at least) that check if the scripts at a certain position has changed since the last request. Since there's no point in using different IDs on every request I changed the logic to use a static counter (like CHtml does).