Restructure events to it's own file.

Signed-off-by: crynobone <crynobone@gmail.com>
Add resources handler. Closes #14.

Signed-off-by: crynobone <crynobone@gmail.com>