Implemented screen orientation lock with preference

Refer to #159.