Flask / Backbone Rewrite

Complete rewrite of old NMIS in Flask and Backbone