Added ElectionData Function for testing json

If you navigate to: admin/ElectionData/ with a POST request: will return
json string.

sample output:
[
{"id":"1",
"election_name":"Test Election",
"election_description":"This election is for testing an election out",
"slug":"test_election",
"start_time":"2014-10-23",
"end_time":"2014-10-31",
"college_id":"4",
"total_votes":"0",
"status":"closed"
}