Adds support for $include statements.

Many more test cases need to be added to cover all the different ways to use $include statements, and documentation is also needed.
Error handling has also been improved.