Move initialization logic to SessionManager

Initialization logic was in dashboard.php so it had to be the first page
visited, now sessionManager will automatically intialize itself if empty
at contruct
Fixed rsa key generation

*good key are now generated by openssl
*fixed a bug with the key size of bad key.