Switched logging to Log4j
Fixed setting the active profile, and added server port option