Merge pull request #353 from dsp/dsp/fix-sql-statements

Fix sql statements
Retreive booked minutes by start and end date

We generalize the getBookedMinutes method and use a generic start and
end date. We use this method in minutesBookedAction.
Make the end date in the model api exclusive

We choosed to use exclusive end dates therefore I changed the model API
to use exclusive end dates.
Deprecate legacy jsonMonthListAction() in favor of monthListAction()
Use start and end dates in monthJsonList
Remove unused code and refactor gteRecords

We don't need openPerid & co in the frontend therefore we don't
need the code to determine if a period is open or not. We can
reduce getRecords to dates and a sum that can be easily expressed
in SQL.
Use timecard model in SummaryBlock
Use start and end dates for timeard calls in frontend
If no start date is given use last contracts start date
Reuse fetchByUserAndPeriod
Javascript
Use a table to display summaries