Generate the matrix view in a more dynamic fashion
Tweak patient JSON generation; temporarily include rails views for login