Automated backup, faster build and cleanup

This PR:

 * Added automated backup with built in rotation scheme.
 * Optimized build time by generating keys as last step.
 * Misc. cleanup.