Support ios6.0 and later instead of 7.0 and later.

At runtime determine whether running on ios7.0 and invoke the ios7 methods.
Refactor.