Merge pull request #2 from myzinsky/master

DRAMPower Library
Updated uncrustify.cfg, added pretty make target.

running 'make pretty' now runs uncrustify on the code, assuming it is in the path.
Ran uncrustify (make pretty) on the codebase.
Updated copyright header to indicate each institution on a
separate line. All headers are currently 2012-2014 for all institutions.
Removed open namespaces in header files.
Removed some unnecessary includes in header files.
Included both libraries in the all target.

Added a test target that currently only runs the library_test.

Changed clean to also remove the library_test binary.
Warning flags, debug flags and optimization flags were commented out.
I have commented these back in, with the exception of -Wall. This results in more warnings so I will save this for later.
[#8] Removed unused / added missing headers

Removed / localized the inclusion of headers. For the order of inclusion, I tried to follow this guide:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Names_and_Order_of_Includes#Names_and_Order_of_Includes
[#3] Made 'type' attribute in memspec optional.

It is only used in the streaming output function of Parameter, which we don't call anyway. It only clutters the memspecs.
[#8] Removed more unused header files.
[#12] Added MemoryType class to replace enum.

Reduced number of elaborate comparisons with the memory type. Added little class to represent the type instead of an enum, to give it some intelligence.
Added c++98-standard flag to Makefile

This will warn us if we use any gnu/gcc specific extensions. We could consider using c++11, altough that will break compatibility with some older compilers, but in return we get nice things like auto-pointers and class member initialization in the header file.
Removed unreachable if-statement.

We don't have a 'DDR' memory, so reaching this if-statement would assert in the get-name-from-type function. The if-tree is exhasutive, so it is safe to remove.
[#16] Reduced duplication in CommandAnalysis.cc
[#13] Changed analysis window back to 1000000

Now we should be able to match the output of version 3.1 again.
[#12] Fixed comparison bug introduced in da8778b

da8778b61ae671855c84350af2217b5fdd4472d0
[#2] PowerCalc should not be part of libdrampower
Removed trailing spaces in makefiles.
[#13] Added test script

At the moment we have 6 tests:
1) make -j4 should return 0
2) make clean should remove all .o, .a and .d files
3) the output of drampower for the trace in traces/commands.trace should match a reference output file, based on version 3.1.
4) the libdrampower test should build while linking to xerces.
5) the libdrampower test linked with xerces should produces output that matches a reference output file.
6) the libdrampower test should build while not linking to xerces.

Run them by calling 'make test'.
[#13] Minor cleanup in test script

Made a global for /dev/null instead of constantly opening and closing a file.