custom_rules.xml created and autogen.sh modified to handle automatic signing by creating secure.properties file.