Finished base code for session handler.

Added basic random number library