happstack: Cleaned up script and link code.