Fix undefined notice in _unauth_wp_ajax()
After gettiing post by slug - cache it for later reference.
Add get_page_template() convenient method.

Retrieve path of page template in current or parent template.