Refactored setPostsPerPage. Setting an iframe if settings page hasn't been loaded yet.

Also setPostsPerPage now resides in a kb object.