title: Creating a non-oauth Meteor Accounts package
body: <p>The accounts-foobar packages all rely on oauth-based authentication systems, and involve quite a bit of confusing, undocumented boilerplate. I'm wondering if there's an easy way to create a package for a non-oauth authentication system that will integrate normally with the Meteor accounts system. The non-oauth system I have in mind is a simple external API that just accepts a username and password, and returns a simple json object with success data or an error.</p>
  
  <p>Is there a simple way to do this? Does Meteor provide an API for this that I've missed?</p>
  
  <p>EDIT: This bit works fine, I'm just not entirely sure how to hook this up to the accounts system:</p>
  
  <pre><code>HTTP.post('https://my-site.com/api/login.json', { params: { username: 'foo', password: 'bar' } }, function (error, result) {
      if (result) console.log('User data:', result.data);
  });
  
  // User data: { userId: 217, username: "foobar" }
  </code></pre>