Add stm bringup timers and move most of the setup code to the stm dir