Rotation + fix crash

I should have made differents PR instead.

The two majors here:
 * capture layer rotation
 * start capture only when the scanner controller has been presented. Your recognition algorithm is really quick and starting the scanner in front of a referenced image, it would lead to crash or inconsistencies, e.g. it would try to close the video preview whereas the presentation animation has not complete.