Restructured core code

Moved app files to /src, created new class files for vote, ballot,
resources, results.