Handle catkin packages and stacks for groovy/hydro.

Also, limit the number of parallel jobs when running catkin_make.
This prevents gcc crash when running make -s -j.