Added optional parameter to param() specifing param type

Created getParams, urlParams and postParams maps. params map now contains values as they would have been prioritised by the param() method: url then get with the addition of post params in third place.

param() now allows the method to be specifed, this can be 'url', 'get' or 'post'. If no method is specified the params map will be used.