testi
1
a
rest query http://localhost:8080/search_date?date=13.03.2014
antaa {"id":1,"result":["Kyykky","Penkkipunnerrus","Penkkipunnerrus"]}

seuraavaksi pitää muotoilla json contentti
uudet luokat QueryArray, paluttaa ArrayList:n
Search_Date luokka tekee REST kyselyn kyselyn QueryArray:lle
target filet mukaan
.
input: http://localhost:8080/search_date?date=13.03.2014
output:
{"id":1,"result":[
{"liike":"Kyykky","toistot":"10","painot":40},
{"liike":"Penkkipunnerrus","toistot":"16","painot":87},
{"liike":"Penkkipunnerrus","toistot":"10","painot":50}
]}
added: getter / setter for array query
Added CORS (Cross Origin Request) filter for the RESTful api.
This feature allows cross domain querys.
1. poistettu turhat rönsyt (greeting, name)
2. /workouts tehty, palauttaa päivämäärät
3. kommentoitu koodia
workouts method:
1. remove id counter from response (response message id)
2. added id to json object {id:1,result:something1},{id:2,result:something2}...
1. query_workouts class: select statement returns list of workout dates, now results are "GROUP by date".
	a) Affects: index page list of last workouts
1. search_date method changed:
	a) sql query returns all results ordered by liike
	b) query mod for uusi_treeni page
1) new rest method
	)/exercises returns json object: list of saved exercises
1. changed db query sorting. "by id" & workout dates sort by date DESC
	a) change: index workout list
	b) present workoutlist
1. code refactoring, removing imports not in use
Merge branch 'dev'

Conflicts:
	rest/target/classes/rest/RequestController.class
	rest/target/rest-0.1.0.jar