iPad support, Modal View on iPad

Squashed commit of the following:

commit 3bc3170ead742d0b4ac66e09af6628aa75d49849
Author: Artem Abramov <ar.abramov@gmail.com>
Date:   Wed Mar 13 13:40:19 2013 +0400

    Finished chapter 13.

    Added iPad support.