Added FunctionTask type to allow lambdas to define Tasks.
Added clang-check script.
Fixed core::open(Model&, string) to return the retval it gets instead of a 0 literal.