Export options in core object

allow middleware to access options like postsPerPage that are
set, but inaccessible to functions like handmade routes.