Rewrite configure task to include most options and to deal with env variables sanely.
Adding documentation for Configure Task.