Convert restrict to an array of restrictions.

Instead of a boolean with hardcoded values we now just convert
restrict into an array of lines related to restrictions.
Merge pull request #87 from apenney/restrict

Convert restrict to an array of restrictions.