PolarSSL imported, flash password logic added