Trailer brake controller, integrated