Make fopenblob() take mode as a parameter.

Although fopenblob() is exclusively being used for reading in binary
files to login (currently), it will also have to be used to write them
when remember functionality is implemented.