Reformat code to work with the drupal coding standards
Include missed files and fix problem with username and password