Modified most main-called functions to return int

With the new default of edit if a command doesn't match but a note with that
name exists, noteless doesn't stop parsing arguments until it hits the end of
argv. Having all the of main-called functions return int allows it to return
status codes, thus exiting at the appropriate time with the added benefit of
being able to programatically work with most of these functions now.