ticket:280 merged V1.0-branch
ticket:280 added unquoting to period_from_query, extended test
ticket:280 fixed get_default_query and test for it
Merge branch 't280_merge_v1_0_branch_2013_05_07'