Merge pull request #492 from baptr/issue-2418

Fix double free on current_line. RM #2418
.gitignore
Add scope attribute to classes promise. RM #1941

By setting scope => namespace, it's possible to define a global class
from an agent bundle.

Includes testcase for new scope attribute.