Improved mobile layouts and mobile detection.

Fixes #3.