Merge fresh/new program functions

Makes it easier to mantain/modify the program display. Also, restricted
allowed functions to AJAX calls only.