A Rapid Trajectory Optimization and Control Framework for Resource-Constrained Applications