Code for downloading and configuring Textpattern