Refactored the program model, added an ajax module and started on some self-help pw reset functionality.