When you work from home, distraction lurks behind every browser tab. The same goes for the office, where even the most committed employee has trouble keeping Facebook closed.