Support for imported functions

The following types of imports are now supported:

1.
import foo
foo.bar()

2.
import foo as f
f.bar()

Note that the following import is not yet supported:
from foo import bar
bar()

This will be supported in the next push