Added get/set_index_limit.

  This is analagous to the maildir-limit setting.
  Expose "index_limit()" as a lua-callable function.

  This will let you view only new/all/pattern-matching
 messages.