Cleaned up login and exceptions.
Added ico and build exe functionality.