Added recent_posts function

Generate an array of recent posts for the sidebar. Requested by a user on Tender. Possibly useful?