Added stabilization

Two different callbacks for camera, one isn't fully working yet. So basically they do the same thing.
The only problem is that pics are rotated by 90 degrees when shot in portrait.
Also made quite a few small changes.