Clean up input styling

This abstracts out the common stuff and reorganizing the stylesheet.
Handle "enter" on added inputs (fixes #13)