A Pokemon which has the Technitian ability gets x1.5 boosted attack power for all moves used which have an attack power of 60 or less (so a move with 60 attack power will actually have 90 attack power). STAB (Same type attack bonus) gives a 50% boost to damage, assuming the attack has the same type as the Pokemon using it (so a Grass Pokemon using Razor Leaf will do 1.5 times the damage). However, I have seen contradicting information, so currently I do not know whether STAB boosts the actual damage or the move's attack power.
What I would like to know, first, is the precise manner in which a STAB is applied to an attack. Secondly, I would like to know what happens if an attack which would be affected by the Technician ability is also affected by STAB (though this answer might vary depending on the actual way that STABs work).
For example, my Scyther has the Technitian ability and attacks using the "Wing Attack" attack, which is a Flying-type attack with 60 attack power. Since Scyther is a Bug/Flying type pokemon he should also get a STAB for this attack, so just what is the eventual attack power/damage in this case?
(Please answer for 4th generation mechanics)