[eluser]Zack Kitzmiller[/eluser]
Just make sure it's secure.
All joking aside, you're going to need a Model to deal with the data, a library to handle/deal with that data, at least one controller to handler the user interaction with the model and the library, and a couple helper functions for formatting output.
Take a look at benedmunds delicious ION Auth for some ideas.. Or just use that, and be done with it.