Quick'n dirty explanations, will be enhanced later
--------------------------------------------------

  - configure and install (./configure && make && make install)
  - add "AddType application/x-httpd-erl .eerl" in your Apache's conf file
  - restart Apache (apachectl restart)
  - put a .htaccess in your directory with ErlHost and ErlPort directives
    (guess what they do)
  - write a .eerl file, using <erl>...</erl> of <? ... ?> constructs
    (both are equivalent at the same time)
  - compile eerl_handler.erl and call eerl_handler:start () (yet another
    dirty piece of code)
  - the environment can be retrieved using get (env) and the standard input
    in case of PUT or POST using get (input) (this has not been tested and
    is probably not complete)

Functions from eerl_handler that you can use
--------------------------------------------

  find_variable (Name) -> {ok, Value} | error
    Return the value of the corresponding HTTP variable

  fetch_variable (Name) -> Value | exception
    Get the value of the variable Name, or raise an exception

  find_input (Name) -> {ok, Value} | error
    Return the value of the CGI input

  fetch_input (Name) -> Value | exception
    Get the value of the CGI input or raise an exception

  set_content_type (CT) -> dummy
    Set the value of the content-type HTTP header (default: text/html)

  set_return_code (RC) -> dummy
    Set the return code (default: 200)

  set_return_code_immediate (RC) -> dummy
    Set the return code and return only headers (a redirect for example)

  get_cookies () -> Cookies
    Return the dictionary of cookies

  find_cookie (Name) -> {ok, Cookie} | error
    Return a given cookie

  fetch_cookie (Name) -> Cookie | exception
    Return a given cookie or raise an exception

  add_header (Nae, Value) -> dummy
    Add a HTTP header "Name: Value"

  redirect (URL) -> dummy
    Redirect the current request to another URL by using a 302 return code

  set_only_headers () -> dummy
    Ask Apache to return only headers

Notes
-----

  - you need Erlang OTP R7B
  - you cannot define functions using "fun", since the code is being
    interpreted as in an Erlang shell
  - by default, the port in eerl_handler.erl and in the module is 4163
