Bug fix: Inherited class attributes.

Fix `HasAttribute` method in `Class` so that it looks for inherited
attributes.
Local variables and variable scope chain.

Add support for local (and global) variables and variable scope chain.
Merge pull request #10 from peelonet/local-variables

Local variables and variable scope chain