Changed model name Application to UserAccount, Added relation between Events and UserAccount, other small fixes.