Added "reference" function for flowstates

Reference is for importing functions from other grammars. I seem to be
having some trouble importing and exporting grammars and actually using
the code, but I believe that to be a problem on my end.

Also made the attempt to load a grammar that didn't exist just return
false, instead of throwing an exception. It's not that exceptional.