Add (once again) the Haddock markup for toplevel functions in brsim.hs.

It might be useful to have these functions appear documented in the docs
generated by Haddock.
Add the cabal build infrastructure.