Implemented remember-me functionality and moved some classes back to
inner classes.