Boilerplate module for using passport local strategy from XHR calls.