Added Status functionality

Also updated templates to pull status color.
Deleting a status now re-assigns all surfices associated
with it to another status.
Some functionality in io.js should be moved to effects.js